<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>{$item['title']}</title>
    <meta charset="utf-8">
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <meta content="email=no" name="format-detection">
    <meta name="msapplication-tap-highlight" content="no" />
    <link rel="stylesheet" href="{MODULE_URL}public/css/global_v2.css?v=201501131921" />
    <script type="text/javascript">
    var SPEED_TIME = [];
    SPEED_TIME.push('headStart:' + (+new Date()));
    SPEED_TIME.push('headEnd:' + (+new Date()));
{php define('HEADER', true);}
    window.sysinfo = {
{if !empty($_W['uniacid'])}
        'uniacid': '{$_W['uniacid']}',
{/if}
{if !empty($_W['acid'])}
        'acid': '{$_W['acid']}',
{/if}
{if !empty($_W['openid'])}
        'openid': '{$_W['openid']}',
{/if}
{if !empty($_W['uid'])}
        'uid': '{$_W['uid']}',
{/if}
        'siteroot': '{$_W['siteroot']}',
        'siteurl': '{$_W['siteurl']}',
        'attachurl': '{$_W['attachurl']}',
{if defined('MODULE_URL')}
        'MODULE_URL': '{MODULE_URL}',
{/if}
        'cookie' : {'pre': '{$_W['config']['cookie']['pre']}'}
    };
    </script>
    <link href="{MODULE_URL}public/css/LuckyMoney/style.css?v=201501140951" rel="stylesheet" type="text/css">
</head>
<body>
    <!-- 声音控件-->
    <section class="u-audio f-hide" autoplay="true" data-src="{MODULE_URL}public/media/mis.mp3?v=201501140952">
        <p id="coffee_flow" class="btn_audio"> <strong class="txt_audio z-hide">关闭</strong> <span class="audio_open"><img src="{MODULE_URL}public/images/LuckyMoney/yiyue.png" title="声音"/></span>
        <div class="coffee-steam-box"></div>
        </p>
    </section>
    <!-- 声音控件 end-->
    <!--三个幕布层-->
    <div class="fg-screen" id="fg_screen">
        <div class="content">
            <div class="animate-screen" id="animate_screen">
                <div class="send-gift-screen" id="send_gift_screen"></div>
            </div>
            <div class="logo"><img src="{MODULE_URL}public/images/ytaohx.png" title="logo"/></div>
            <div class="info-arrow" id="info_arrow"><img src="{MODULE_URL}public/images/LuckyMoney/details.png" title="活动详情"/></div>
            <!--朋友进来场景-->
            <div id="scene2" class="helpFriend" >
                <div class="giftBox">
                    <img src="{MODULE_URL}public/images/LuckyMoney/gift.png" title="活动礼盒" class="giftBoxImg"/>
                    <div class="friend_img"><a href="{php echo $this->createMobileUrl('detail', array('rid'=>$rid))}"><img src="{$fans['avatar']}" title="朋友图像"/></a></div>
                </div>
                {if $uid==$_W['member']['uid']}
                <div class="activeyNum"><p style="color:red">提示：点击头像查看我的礼包</p></div>
                <a href="javascript:" class="find_friend giftBtn js_help" title="找朋友拆礼包">
                    <img src="{MODULE_URL}public/images/LuckyMoney/find_friend.png"/>
                </a>
                {else}
                <a href="javascript:" class="giftBtn js_helpfolder" title="帮朋友拆礼包" data-url='{php echo $this->createMobileUrl('open', array('rid'=>$rid,'uid'=>$uid, true))}'/><img src='{MODULE_URL}public/images/LuckyMoney/help.png'/></a>
                {/if}
            </div>
            <!--活动人数-->
            <div class="activeyNum">
                <p>目前已有21610位小伙伴参与活动</p>
            </div>
        </div>
        <!--页脚-->
        <div class="page-footer" id="page_footer">
            <div class="footer">
                <a href="{$_W['account']['subscribeurl']}">Powered by {$_W['account']['name']}</a>
            </div>
        </div>
    </div>
    <!--活动分享弹出层开始-->
    <div id="activeShareLayer" class="dialogLayer activeShareLayer">
        <div class="Layer_content">
            <a href="javascript:" id="activeShareBtn" class="activeShareBtn"><img src="{MODULE_URL}public/images/LuckyMoney/tip.png"/></a>
        </div>
    </div>
<!--活动分享弹出层结束-->
<!--活动详情弹出层开始-->
<div id="activeDetailLayer" class="dialogLayer activeDetailLayer">
    <div class="Layer_content" >
        <div class="activeBox">
            <div class="activeCon">
                <h2>【活动时间】</h2>
                <p class="time">{$item['startime']} 至 {$item['endtime']}</p>
                <h2 class="activeTit">【活动说明】</h2>
                <div>{$item['rule']}</div>
            </div>
            <div class="underStandBtn"><a href="javascript:" id="underStandBtn"><img src="{MODULE_URL}public/images/LuckyMoney/got-it.png"/>我已经明白了</a></div>
        </div>
    </div>
</div>
<!--活动详情弹出层结束-->

<!--圣诞帮他拆红包弹出层开始-->
<div id="helpHimGiftLayer"  class="dialogLayer helpHimGiftLayer">
    <div class="Layer_content" >
        <div class="help_gift_box">
            <div class="raysDemoHolder">
                <a class="raysLogo show_gift" href="javascript:"><img src="{MODULE_URL}public/images/LuckyMoney/open_gift.png"/></a>
                <div class="rays"><img src="{MODULE_URL}public/images/LuckyMoney/light.png"></div>
            </div>
            <div class="gift_info">
                <img src="{MODULE_URL}public/images/LuckyMoney/award.png"/>
                <div class="gift_info_con">您已成功帮朋友拆开礼包啦~百分百中奖，要不自己也试试手气？</div>
                <div class="gift_join_btn" id="gift_join_btn" onClick="javascript:location.href='{php echo $this->createMobileUrl('detail',array('rid'=>$rid))}'"><img src="{MODULE_URL}public/images/LuckyMoney/iam_in.png" title="我也要参加"/></div>
            </div>
        </div>
    </div>
</div>
<!--圣诞帮他拆红包弹出层结束-->
<!--蒙板弹出层开始-->
<div id="dialog_mask" class="mask hide"></div>
<!--蒙板弹出层结束-->
<script type="text/javascript">SPEED_TIME.push('footStart:' + (+new Date()));</script>
<script type="text/javascript" src="{MODULE_URL}public/js/lib/mix/mix.js?v=201501131921"></script>
<script type="text/javascript" src="{MODULE_URL}public/js/lib/config_v2.js?v=201501131921"></script>
<script type="text/javascript" src="{MODULE_URL}public/js/lib/global_v2.js?v=201501131921"></script>
<script type="text/javascript">
    //解决zepto计算高度差异的问题       
    $(function() {           
        function setCopyright(options) {
            options = $.extend({
                contentId: 'page_content',
                footerId: 'page_footer',
                offset: 0,
                isResize: false
            }, options);

            var $conetnt = $('#' + options.contentId),
                $footer = $('#' + options.footerId);

            var setMinHeight = function() {
                var footerHeight = $("#" + options.footerId).height();
                var pageContent = $("#" + options.contentId);
                var origin = pageContent.height();
                pageContent.css('minHeight',origin);
                var padding = pageContent.height() - origin;
                pageContent.css('minHeight',"auto");
                var winH = $(window).height();
                var result = winH - footerHeight - options.offset - padding;
                if(result <= 0){
                    setTimeout(setMinHeight,200);
                }else{
                    $conetnt.css('minHeight', winH - footerHeight - options.offset - padding);
                }                    
            };

            setTimeout(function() {
                setMinHeight()
            }, 200);

            options.isResize && $(window).resize(function(){
                setMinHeight()
            }); 
            
        }

        setCopyright();
    })
</script>
<script type="text/javascript">
    var _oneclick = false
    var __Images = [
        {src:'{MODULE_URL}public/images/LuckyMoney/people.png?v=201501141124', loaded:false},
        {src:'{MODULE_URL}public/images/LuckyMoney/santaClaus.png?v=201501141124', loaded:false},
        {src:'{MODULE_URL}public/images/LuckyMoney/gift1.png?v=201501141124', loaded:false},
        {src:'{MODULE_URL}public/images/LuckyMoney/gift2.png?v=201501141124', loaded:false},
        {src:'{MODULE_URL}public/images/LuckyMoney/gift3.png?v=201501141124', loaded:false}
    ];
    
    // **G_VERSIONINFO_START**
    var G_VERSIONINFO = [
        "logic/LuckyMoney/app",
        "logic/LuckyMoney/index.js?v=201501131921"
    ];
    // **G_VERSIONINFO_END**
    
    seajs.updateRes(function(app, index) {
        index.init({
            appId: 'wxbffd765e78fb9044',
            timestamp: 1423286862,
            nonceStr: 'ZbsGK3ojW5NNADza',
            signature: 'a57c1fd18da1cd8604a3e6e5e56d7c3f091f789b',
            title:document.title,
            desc:document.title,
            link:'http://crmwx.vanke.com:99/O2O/LuckyMoney/share?shareid=oF2_2jpPhsSmIRnsN7H6yv9uuYjo&token=ytaohx1411634504&o2oid=39ce5ad9-e1b6-26b8-c2b2-6fdc015f5185',
            imgUrl:'/pages/public/images/LuckyMoney/luckyico.png'
        });
        // '' == '1' && $.sendSpeed();
    }, true, false);
</script>
</body>
</html>